Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import of report results / errors without host #1687

Merged
merged 3 commits into from
Sep 20, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Sep 16, 2021

What:
The gmp_xml_handle_result function will now no longer try to
remove newlines from the host if it is NULL.

Why:
When importing reports, errors may not have any host assigned,
which caused a segmentation fault without the added check
(AP-1641).

How did you test it:
By importing a report with an error message without a host.

Checklist:

The gmp_xml_handle_result function will now no longer try to
remove newlines from the host if it is NULL.

When importing reports, errors may not have any host assigned,
which caused a segmentation fault without the added check
(AP-1641).
@timopollmeier timopollmeier marked this pull request as ready for review September 16, 2021 07:42
@timopollmeier timopollmeier requested a review from a team as a code owner September 16, 2021 07:42
@jhelmold jhelmold merged commit cc20af4 into greenbone:master Sep 20, 2021
jhelmold added a commit that referenced this pull request Sep 20, 2021
Fix import of report results / errors without host (backport #1687)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants